package br.com.mendsoft.gtalk.bot.fs.commands;

import br.com.mendsoft.gtalk.bot.fs.config.Configuration;

/**
 * @author danielmend
 * 
 */
public abstract class ACommand {

	private String pathCurrent;

	private Configuration configuration;

	/**
	 */
	public ACommand() {
		setPathCurrent("");
		setConfiguration(null);
	}

	/**
	 * @return the pathCurrent
	 */
	public String getPathCurrent() {
		return pathCurrent;
	}

	/**
	 * @param pathCurrent
	 *            the pathCurrent to set
	 */
	public void setPathCurrent(String pathCurrent) {
		this.pathCurrent = pathCurrent;
	}

	/**
	 * @return the configuration
	 */
	public Configuration getConfiguration() {
		return configuration;
	}

	/**
	 * @param configuration
	 *            the configuration to set
	 */
	public void setConfiguration(Configuration configuration) {
		this.configuration = configuration;
	}

	/**
	 * @param argCommand
	 *            Arguments for command
	 * @return Body of the message we will return to the user.
	 * @throws Exception
	 *             Exception
	 */
	public abstract String execute(String argCommand) throws Exception;
}
